﻿<%@ Page Title="Welcome to Frontdesk - The easiest way to collect data on the web and reply automatically" Language="C#"
    MasterPageFile="~/Views/Shared/Frontdesk.Master" Inherits="System.Web.Mvc.ViewPage<Sendz.WebUI.Models.LoginViewModel>" %>

<asp:Content ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Login to YOUR Frontdesk</h2>
    <p class="justify">
        Welcome to Frontdesk, a tool for collecting data, sending custom responses automatically,
        and learning what people are interested in. It is so efficient, you will swear that
        you have stumbled onto a team of monkeys whose sole purpose is to do cool stuff
        for you.</p>
    <% using (Ajax.BeginForm(new AjaxOptions { OnBegin = "onBegin", UpdateTargetId = "wrapper", InsertionMode = InsertionMode.Replace }))
       { %>
    <%= Html.ValidationSummary(true, "The username or password you entered is invalid, please try again.")%>
    <div class="form-field">
        <div class="form-field-label">
            Username
        </div>
        <div class="form-field-error">
            <%: Html.ValidationMessageFor(l => l.Username)%></div>
        <div class="form-field-input">
            <%: Html.TextBoxFor(l => l.Username, new { @class = "frontdesk" })%></div>
    </div>
    <div class="form-field">
        <div class="form-field-label">
            Password
        </div>
        <div class="form-field-error">
            <%: Html.ValidationMessageFor(l => l.Password)%></div>
        <div class="form-field-input">
            <%: Html.Password("Password", Model.Password, new { @class = "frontdesk-pw" })%></div>
    </div>
    <div class="form-field">
        <div class="form-field-input">
            <label>
                <%: Html.CheckBox("rememberme", Convert.ToBoolean(ViewData.Eval("RememberMe")), new { title = "Check this box to remain logged in, even after you close your browser" })%>Remember
                Me!</label>&nbsp;&nbsp;&nbsp;<%: Html.ActionLink("Lost Your Password", "LostPassword", null, new { title = "Help, I lost my password!" }) %>?
        </div>
    </div>
    <div class="form-actions">
        <%: Html.Hidden("returnUrl", Request["returnUrl"])%>
        <input type="submit" value="Login" class="button" title="Login to the amazing Frontdesk!" />
    </div>
    <% } %>
</asp:Content>
<asp:Content ContentPlaceHolderID="Sidebar" runat="server">
    <% Html.RenderPartial("videohelp"); %>
</asp:Content>
<asp:Content ContentPlaceHolderID="footer" runat="server">
</asp:Content>
